package name.as3.frameworkTest.mediators
{
import name.as3.cmdFrameworks.addins.Mediator;
import name.as3.frameworkTest.commands.OnLoginOKCommand;
import name.as3.frameworkTest.enums.CommandTestType;
import name.as3.frameworkTest.events.LoginEvent;

public class CreatePanelMediator extends Mediator
{
	/**
	 *
	 */
	public function CreatePanelMediator()
	{
		super();
	}
//==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
// protected
//==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
	override protected function p_onSetViewer():void
	{
		viewer.addEventListener(LoginEvent.REQUEST_LOGIN, requestLogin_viewer);
	}
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// event
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
	private function requestLogin_viewer(e:LoginEvent):void
	{
		this.invokeCommand(CommandTestType.OnLoginOK, OnLoginOKCommand);
	}
}
}